{% extends '/layout.html' %}

{% block title %}Login | 小白鼠{% endblock %}

{% block body %}
	<h3>Welcome to login！</h3>
	<hr>
	<div>
		<form action="{{ url_for('users.login' )}}" method="POST">
			{{ form.hidden_tag() }}

			<div><span>{{ form.username.label }}:&nbsp;</span>
			{{ form.username }}</div>
			{{ macros.show_errors(form.username.errors) }}

			<div><span>{{ form.password.label }}:&nbsp;</span>
			{{ form.password }}</div>
			{{ macros.show_errors(form.password.errors) }}

			<div><span>{{ form.remember_me.label }}:&nbsp;</span>
			{{ form.remember_me }}</div>

			<div>{{ form.submit }}</div>
		</form>
	</div>
{% endblock %}